package com.spring.transaction.dao;

import com.spring.transaction.exception.BookStockException;
import com.spring.transaction.exception.UserAccountException;

public interface BookShopDao {
    // 根据书号获取书的单价
     int findBookPriceBySerialNum(Integer bookNum);
    // 更新书的库存，使书号对应的库存-1
     void updateBookStock(Integer bookNum) throws BookStockException;
    // 更新用户的账户余额：account的balance-price
     void updateUserAccount(String username, int price) throws UserAccountException;
}